package com.itheima.基础案例.Demo2;

import java.util.Scanner;

public class TestStudent {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        Student student=new Student();
        System.out.println("输入信息:");
        student.setId(sc.nextInt());
        student.setName(sc.next());
        student.setSex(sc.next());
        student.setAge(sc.nextInt());
        System.out.println(student);

    }
}
